function(add_library_with_export TARGET_NAME)
add_library(${TARGET_NAME} ${ARGN})
generate_export_header(${TARGET_NAME} BASE_NAME "${TARGET_NAME}" EXPORT_FILE_NAME "${CMAKE_CURRENT_SOURCE_DIR}/inc/${TARGET_NAME}_export.h")
target_include_directories(${TARGET_NAME} PUBLIC 
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/${TARGET_NAME}/inc> 
$<INSTALL_INTERFACE:${TARGET_NAME}/inc>)    
endfunction(add_library_with_export TARGET_NAME)